<script type="text/html" template lay-done="layui.data.sendParams(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-skucolor-editForm" id="LAY-app-skucolor-editForm">
        <input type="hidden" name="id" value="{{d.params.data.id || '' }}" />
        <div class="layui-form-item layui-hide">
            <label for="id" class="layui-form-label  layui-form-required"></label>
            <div class="layui-input-block">
                <input type="number" min="0" max="999999" name="id" lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.id || '' }}" placeholder="请输入" lay-reqText="请输入并为数字" />
            </div>
        </div>

        <div class="layui-form-item layui-hide">
            <label for="goodstypespecvalueId" class="layui-form-label  layui-form-required">颜色编号</label>
            <div class="layui-input-block">
                <input type="number" min="0" max="999999" name="goodstypespecvalueId" lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.goodstypespecvalueId || '' }}" placeholder="请输入" lay-reqText="请输入并为数字" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="colorname" class="layui-form-label  layui-form-required">颜色</label>
            <div class="layui-input-block">
                <input name="colorname" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入" lay-reqText="请输入" value="{{d.params.data.colorname || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="color" class="layui-form-label  layui-form-required">前端颜色值</label>
            <div class="layui-input-block">
                <input name="color" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入" lay-reqText="请输入" value="{{d.params.data.color || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="boscode" class="layui-form-label  layui-form-required">伯俊编号</label>
            <div class="layui-input-block">
                <input name="boscode" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入" lay-reqText="请输入" value="{{d.params.data.boscode || '' }}" />
            </div>
        </div>

        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-skucolor-editForm-submit" id="LAY-app-skucolor-editForm-submit" value="确认编辑">
        </div>
    </div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.sendParams = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
        
            form.verify({
                
            });
            //重载form
            form.render(null, 'LAY-app-skucolor-editForm');
        })
    };
</script>
